import { request } from '@/utils'

// 首页博客查询
export function getBlogs(data) {
  return request({
    url: '/blog/getBlogs',
    method: 'GET',
    params: {
      ...data,
    },
  })
}

// 首页博客查询
export function getBlogById(id) {
  return request({
    url: '/blog/getBlogById',
    method: 'GET',
    params: {
      id,
    },
  })
}

// 归档博客查询
export function getBlogTimeLine() {
  return request({
    url: '/blog/getBlogTimeLine',
    method: 'GET',
  })
}
